package com.app.stick.visit.domain.vo;/**
 * @program: app-admin
 * @name BizPatientVisitAddOrEditVo
 * @description: 新增或修改患者就诊
 */

import com.app.common.interfaces.Add;
import com.app.common.interfaces.Edit;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *@author:
 *@program: app-admin
 *@name BizPatientVisitAddOrEditVo
 *@description: 新增或修改患者就诊
 */
@Data
@ApiModel(value = "BizPatientVisitAddOrEditVo" , description = "新增或修改患者就诊" )
public class BizPatientVisitAddOrEditVo {

    @NotEmpty(message = "患者就诊ID不能为空", groups = {Edit.class})
    @ApiModelProperty(value = "患者就诊ID(修改时必传)")
    private String visitId;

    @NotEmpty(message = "患者姓名不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者姓名", required = true)
    private String patientName;

    @NotEmpty(message = "患者身份证号不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者身份证号", required = true)
    private String patientCard;

    @NotEmpty(message = "患者性别不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者性别（1=男,2=女）", required = true)
    private String patientSex;

    @ApiModelProperty(value = "患者手机号")
    private String patientPhone;

    @NotNull(message = "患者就诊日期不能为空", groups = {Add.class, Edit.class})
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "患者就诊日期", required = true)
    private Date visitDate;

    @NotEmpty(message = "患者就诊号不能为空", groups = {Edit.class})
    @ApiModelProperty(value = "患者就诊号(修改时必传)")
    private String visitCode;

    @NotNull(message = "患者就诊年龄不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者就诊年龄", required = true)
    private Integer visitAge;

    @ApiModelProperty(value = "患者床号")
    private String visitBed;

    @NotEmpty(message = "患者就诊医生不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者就诊医生", required = true)
    private String visitDoctor;

    @NotEmpty(message = "患者就诊科室不能为空", groups = {Add.class, Edit.class})
    @ApiModelProperty(value = "患者就诊科室", required = true)
    private String deptId;

    @ApiModelProperty(value = "备注")
    private String remark;
}
